package com.keepsport.keepsportapi.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@TableName("t_user_detail")
@NoArgsConstructor
public class UserDetail {
    /**
     * 序号
     */
    @TableId(type = IdType.AUTO)
    private Integer id;
    /**
     * 昵称
     */
    private Integer uid;
    /**
     * 头像
     */
    private String img;
    /**
     * 城市
     */
    private String city;
    /**
     * 简介
     */
    private String introduction;
    /**
     * 性别
     */
    private String sex;
    /**
     * 偏好
     */
    private String hobby;
    /**
     * 生日
     */

    private Date birthday;
    /**
     * 身高
     */
    private Integer tall;
    /**
     * 体重
     */
    private Integer weight;

    public UserDetail(Integer uid) {
        this.uid = uid;
        this.img = "https://fastly.jsdelivr.net/npm/@vant/assets/cat.jpeg";
        this.city="";
        this.introduction="";
        this.sex = "";
        this.hobby = "";
        this.birthday = null;
        this.tall = 0;
        this.weight = 0;

    }
}